import request from "@/utils/request";
import type { DetailVO } from "@/types/detailType";
import type { Response } from "@/types/response";

enum ENUM {
   fetchDetailInfoAPI = "/goods"
}

/**
 * @description 获取商品详情的接口
 * */
export const fetchDetailInfoAPI = (id: string): Promise<Response<DetailVO>> => request<DetailVO>({
   url: ENUM.fetchDetailInfoAPI,
   method: "GET",
   data: {
      id,
   },
});